//
//  YWPicture.h
//  maintain
//
//  Created by 郑想 on 15/11/4.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWDictMaintenanceType.h"

typedef NS_ENUM(NSUInteger, YWPictureUploadStatus) {
    YWPictureUploadStatusNull = 0,
    YWPictureUploadStatusSuccess = 1,
    YWPictureUploadStatusFail = 2,
};

typedef NS_ENUM(NSUInteger, YWPictureTroubleType) {
    YWPictureTroubleTypeMission = 0, //任务图片 报障
    YWPictureTroubleTypeRecord = 1, //维修记录产生的图片  维修
    YWPictureTroubleTypeEquipment = 2, //设备的图片
};

@interface YWPicture : NSObject
/**记录Id*/
@property (nonatomic, assign) NSInteger recordId;
/**图片Id*/
@property (nonatomic, copy) NSString* pictureId;
/**图片名称*/
@property (nonatomic, copy) NSString* pictureName;
/**大图URL*/
@property (nonatomic, copy) NSString* bigPictureUrl;
/**小图URL*/
@property (nonatomic, copy) NSString* smallPictureUrl;
/**是否本地图片*/
@property (nonatomic, assign) BOOL isLocalImage;
/**上传状态*/
@property (nonatomic, assign) YWPictureUploadStatus uploadStatus;
/**任务Id*/
@property (nonatomic, assign) NSInteger missionId;
/**类型ID*/
@property (nonatomic, assign) YWMaintenanceType maintenanceType;
/**设备ID*/
@property (nonatomic, copy) NSString* equipmentId;

/**维修图片类型*/
@property (nonatomic, assign) YWPictureTroubleType pictureTroubleType;
@end
